package top.yuyufeng.mbuy.entity;

import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.*;

@Data
@Table(name = "mb_order")
public class Order {
    @Id
    private Integer id;

    @Column(name = "order_no")
    private Long orderNo;

    @Column(name = "user_id")
    private Integer userId;

    @Column(name = "shipping_id")
    private Integer shippingId;

    /**
     * 实际支付金额
     */
    private BigDecimal payment;

    /**
     * 支付类型 1-在线支付
     */
    @Column(name = "payment_type")
    private Integer paymentType;

    /**
     * 运费
     */
    private BigDecimal postage;

    /**
     * 状态 0-已取消，10-未付款，20-已付款，40-已发货，50-交易成功，60-交易关闭
     */
    private Integer status;

    @Column(name = "payment_time")
    private Date paymentTime;

    @Column(name = "send_time")
    private Date sendTime;

    @Column(name = "end_time")
    private Date endTime;

    @Column(name = "close_time")
    private Date closeTime;

    @Column(name = "create_time")
    private Date createTime;

    @Column(name = "update_time")
    private Date updateTime;


}